package cn.tedu.design;

interface Teacher2 {
    void ready();

    void teach();
}

/*本类用来设计老师类 接口
 * 面向接口编程---先天设计的结果*/
public class DesignTeacher1 {

}

class CGBTeacher2 implements Teacher2 {
    @Override
    public void ready() {

    }

    @Override
    public void teach() {

    }
}

class ACTeacher2 implements Teacher2 {
    @Override
    public void ready() {

    }

    @Override
    public void teach() {

    }
}